C++Primer Plus(第六版)编程练习 您所在的位置:网站首页 c++ primer 最新 C++Primer Plus(第六版)编程练习

C++Primer Plus(第六版)编程练习

#C++Primer Plus(第六版)编程练习| 来源: 网络整理| 查看: 265

第三章 处理数据

1. 编写一个程序,要求用户使用一个整数指出自己的身高(单位为英寸),然后将身高转换为英尺和英寸。该程序使用下划线字符来指示输入位置,另外,使用一个const符号常量来表示转换因子。(百度:1英尺=12英寸)

#include using namespace std; const double Times=12.0;//倍数是12 int main() { double height; coutheight; cout


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有